count = 1
while count <= 3:
    user_name = input("请输入用户名:")
    pwd = input("请输入用户密码：")
    if user_name == "老逼登" and pwd == "wjq521":
        print("登陆成功")
        break
    else:
        print("用户名或密码错误，请重新输入")
        if count == 3:
            print("输入错误次数已上限")
            break
    count += 1
